package com.algomypractice.skiplist;

import lombok.Getter;
import lombok.Setter;

/**
 * @author: ZhouBert
 * @date: 2019/7/1
 * @description: 跳表的节点
 */
@Getter
@Setter
public class SkipNode<E extends Comparable<? super E>> {
	/**
	 * 节点存储的值
	 */
	private E val;
	/**
	 * 节点指向第i层的节点next[i]
	 * 纵向的数组？
	 */
	private SkipNode<E>[] next;

	public SkipNode(int MAX_LEVEL, E val) {
		this.next = new SkipNode[MAX_LEVEL];
		this.val = val;
	}
}
